package train.DAY623;
//implements Comparable
public class Student {
    private String name;
    private int id;
    private Double score;
    private Double high;

    public Student() {
    }

    public Student(String name, int id, Double score, Double high) {
        this.name = name;
        this.id = id;
        this.score = score;
        this.high = high;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Double getHigh() {
        return high;
    }

    public void setHigh(Double high) {
        this.high = high;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", id='" + id + '\'' +
                ", score=" + score +
                ", high=" + high +
                '}';
    }

//    @Override
//    public int compareTo(Object o) {
//        Student student=(Student) o;
//        int i =  this.getId()-student.getId();
//        return i;
//    }
}
